#################################################################################################
###  Replication Code and Data for: "Do Primaries Improve Electoral Performance? Clientelism
###  and Intra-Party Conflict in Ghana," American Journal of Political Science
###
###  Nahomi Ichino and Noah Nathan
###  Department of Government, Harvard University
###  June 2012 
###  
#################################################################################################

All analysis was conducted in R (www.r-project.org).  

To replicate the results in the article or the Supporting Information (online appendix), 
it is *not* necessary to re-run the matching.  

For the results in the article: IchinoNathan_AJPS_primaries_analysis.R calls in 
matchingoutput.Rdata, which is produced by IchinoNathan_AJPS_primaries_matching.R. 

For the results in the Supporting Information: IchinoNathan_AJPS_primariesSI_analysis.R 
calls in the other .Rdata files, which are produced by 
IchinoNathan_AJPS_primariesSI_matching.R. 

###

The full set of replication data and code files are:

(1)  IchinoNathan_primariesdata.csv
(2)  primariesdata_NDC.csv
(3)  primariesdata_NPP.csv
(4)  IchinoNathan_Ghanaprimaries_codebook.pdf

(5)  matchingoutput.Rdata (for Figure and Tables in the article)
(6)  matchingoutput_t3SI.Rdata (for Table 3 in SI)
(7)  matchingoutput_t4SI.Rdata (for Table 4 in SI)
(8)  matchingoutput_t56SI.Rdata (for Tables 5 and 6, panels (a) and (b) in SI)
(9)  matchingoutput_t56SIc.Rdata (for Tables 5 and 6, panel (c) in SI)

(10) IchinoNathan_AJPS_primaries_matching.R (matching, for article)
(11) IchinoNathan_AJPS_primaries_analysis.R (analysis, for article)
(12) IchinoNathan_AJPS_primariesSI_matching.R (matching, for SI)
(13) IchinoNathan_AJPS_primariesSI_analysis.R (analysis, for SI)




